set PROJECT_NAME=dm
set SRC_DIR=src
set DIST_DIR=dist
set FIGURES_DIR=figures

md %DIST_DIR%
latex %PROJECT_NAME%.tex
gbk2uni %PROJECT_NAME%.out
latex %PROJECT_NAME%.tex
dvipdfmx -o %DIST_DIR%/%PROJECT_NAME%.pdf %PROJECT_NAME%.dvi